<?php
	$this->load->helper('url');
	$viewReviewUrl = site_url('reviews/editReview');
?>
<div>
	<div>
		Name: <?= $gameDetails['name'];?>		
	</div>
	<div>
		ID: <?= $gameDetails['id'];?><br />		
	</div>
	<div>Publisher: <?= $gameDetails['publisher'];?>
	</div>
	<div>Released Data: <?= $gameDetails['released_date'];?>
	</div>
	<div>Language: <?= $gameDetails['language'];?>
	</div>
	<div>Number of players: <?= $gameDetails['player_number'];?>
	</div>
	<div>Format: <?= $gameDetails['format'];?>
	</div>
	<div>Rating: <?= $gameDetails['parental_rating'];?>
	</div>
	<div><img src="" /></div>

	<div>
		<form name="editVersion" method="POST" action="<?=$viewReviewUrl?>/<?=$gameDetails['id'];?>">
			<fieldset>
				<?php  if(isset($reviewDetails)): ?>
					<?= $reviewDetails['version']; ?>
					<?= $reviewDetails['review_content']; ?>
					<?= $reviewDetails['review_time']; ?>
					<a href="javascript:document.editVersion.submit();">Edit this reviews</a>	
				<?php else: ?>
					<a href="javascript:document.editVersion.submit();">Add your review</a>		
				<?php endif; ?>
			</fieldset>
		</form>
	</div>
</div>
